package com.springboot.blog.beans;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "blog_log")
public class BlogLog {
    @TableId(type = IdType.AUTO)
    private Integer logid;
    @TableField
    private String logname;
    @TableField
    private String logip;
    @TableField(fill= FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    private Date logtime;
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer logdelete;
}
